// 运营管理 相关路由
import { post, get } from "@/utils/http";

// ==================== 接口路径枚举 ====================
enum Api {
  OrderList = "/order/orderList", // 订单列表接口
  BatchDelete = "/order/batchDelete", // 订单管理-批量删除订单接口
  City = "/Charging/city", // 城市层级数据接口
}

function orderListApi(data: any) {
  return post(Api.OrderList, data);
}

function batchDeleteApi(order: string) {
  return post(Api.BatchDelete, { order });
}

function cityApi() {
  return get(Api.City);
}

// ==================== 导出接口函数 ====================

export { orderListApi, batchDeleteApi, cityApi };
